package com.timu;

import java.time.LocalDate;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        /* 所有的User类构造方法都需要自动设置id和userCode */
        User user1 = new User();
        System.out.println(user1.getId());
        System.out.println(user1.getUserCode());
        User user2 = new User("李四",
                "13355556666",
                LocalDate.of(2000, 1, 1));
        System.out.println(user2);
        Thread.sleep(5000);
        user2.setName("王五");
        System.out.println(user2);
        user2.nextBirth();
    }
}
